//
//  AppDelegate.swift
//  iot
//
//  Created by xinliang.yuan on 2024/4/16.
//

import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = .white
        let firstVC = FirstScreenVC()
        let naviController = UINavigationController(rootViewController: firstVC)
        if #available(iOS 13.0, *) {
            let appearance = UINavigationBarAppearance()
            appearance.configureWithDefaultBackground()
            naviController.navigationBar.scrollEdgeAppearance = appearance
        }
        window?.rootViewController = naviController
        window?.makeKeyAndVisible()
        print(naviController.navigationBar)
        return true
    }


}

